package edu.hitsz.application;

import static edu.hitsz.application.ImageManager.BACKGROUND_IMAGE2;

public class NormalGame extends Game{
    public NormalGame(boolean musicSwitch, String userName) {
        super(musicSwitch, userName);
        background = BACKGROUND_IMAGE2;
        rankFile = "./././rankData/rankList_normal.txt";
        increaseDiffCircle = 10000;
    }

    @Override
    protected void increaseDifficulty() {

        if(diffDegree != (time/increaseDiffCircle)){
            diffDegree = time/increaseDiffCircle;
            enemyMaxNumber = 5 + (diffDegree);
            mobHp = 30 + 15*(diffDegree);
            eliteHp = 90 + 30*(diffDegree);
            System.out.println("难度变化:");
            System.out.println("精英机血量: " + eliteHp + "  普通敌机血量: " + mobHp);
            System.out.println("同一时刻敌机上限: " + enemyMaxNumber);
        }
    }
}
